<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 1.checkbox单选框 -->
    <div id="app">
        <!-- <label for="agree">
            <input type="checkbox" id="agree" v-model="isAgree">同意协议
        </label>
        <h2>你选择的是：{{isAgree}}</h2>
        <button :disabled="!isAgree">下一步</button> -->

        <!-- 2.checkbox多选框 -->
        <input type="checkbox" value="篮球" v-model="hobbys">篮球
        <input type="checkbox" value="足球" v-model="hobbys">足球
        <input type="checkbox" value="羽毛球" v-model="hobbys">羽毛球
        <input type="checkbox" value="乒乓球" v-model="hobbys">乒乓球
        <h2>你选择的爱好是：{{hobbys}}</h2>
    </div>
</body>
<script src='../js/vue.js'></script>
<script>
    let app = new Vue({
        el: '#app',
        data: {
             msg:'hello vue.js',
             isAgree: false,  // 单选框对应的是一个布尔值
             hobbys: []  // 多选框对应的是一个数组
        },
        methods: {}
    })
</script>
</html>